<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::group(['namespace'=>'App\Http\Controllers\Api\Auth','prefix'=>'api'],function(){

    Route::any('auth/get_token','AuthController@index');

});

Route::group(['namespace'=>'App\Http\Controllers\Api\User','middleware'=>'WebAuth'],function(){

    Route::post('api/user/agree_service_protocol','UserController@service_protoc');  //同意用户协议
    Route::post('api/user/bind_phone','UserController@bind_phone');  //绑定手机
    Route::post('api/user/user_profile','UserController@getUserProfile');  //获取用户信息
    Route::post('api/user/set_weight_height','UserController@setHeightOrWeight');  //设置

    Route::post('api/user/up_user_info','UserController@getWechatUserInfo');  //设置
    //Route::post('api/user/upload_imgs','UserController@upload_img');  //设置
});
Route::group(['namespace'=>'App\Http\Controllers\Api\User'],function(){

    Route::post('api/user/upload_imgs','UserController@upload_img');  //设置
});


